﻿<%@ Page Language="C#" AutoEventWireup="True" CodeBehind="PropertyPreviewWindow.aspx.cs" 
    Inherits="Medianamik.UI.Web.ModalWindows.PropertyPreviewWindow" 
    MasterPageFile="~/Medianamik/MasterPages/MedianamikModalWindow.Master"
    EnableViewState="false" %> <%-- Pas de postback = Pas besoin de viewstate --%>

<asp:Content ID="HeaderContentHolder" runat="server" ContentPlaceHolderID="HeaderContentHolder">
<telerik:RadScriptBlock runat="server" ID="scriptBlock">
	<script type="text/javascript">
        //<![CDATA[
        function GetRadWindow()
        {
            var oWindow = null;
            if (window.radWindow) oWindow = window.radWindow;
            else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;
            return oWindow;
        }

        function closeWindow() {
            oWindow.Close();
        }
        //]]>            
	</script>
	</telerik:RadScriptBlock>
</asp:Content>

<asp:Content ID="CenterContent" ContentPlaceHolderID="CenterContent" runat="server">
    <asp:ScriptManager ID="WindowScriptManager" runat="server" />
    <asp:PlaceHolder ID="MainPlaceHolder" runat="server">
        <iframe src="<%= Url %>" frameborder="0"></iframe>
    </asp:PlaceHolder>
    <asp:PlaceHolder ID="MessagePlaceHolder" Visible="false" runat="server">
        <p><asp:Literal ID="Message" runat="server" /></p>
    </asp:PlaceHolder>
</asp:Content>